package com.bang.springcloud.report.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 消息记录表
 * </p>
 *
 * @author bang
 * @since 2019-12-10
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class BrokerMessageLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 消息唯一id
     */
    @TableId(value = "message_id", type = IdType.INPUT)
    private String messageId;

    /**
     * 消息内容
     */
    private String message;

    /**
     * 重试次数
     */
    private Integer tryCount;

    /**
     * 消息状态 0:发送中 1:发送成功 2:发送失败
     */
    private String status;

    /**
     * 下次重新发送的时间
     */
    private LocalDateTime nextRetry;

    /**
     * 消息创建时间
     */
    private LocalDateTime createTime;

    /**
     * 消息更新时间
     */
    private LocalDateTime updateTime;


}
